<?php
require_once 'AipTrans.php';

$appId = '25603137';
$appKey = '2MunDeyV1HgVwinYgB0srEfW';
$appSecret = '';

$trans = new AipTrans($appId, $appKey, $appSecret);

$r = $trans->texttrans('zh', 'en', '我是好人！');

var_dump($r);